package pe.edu.cibertec.managed;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author DanJoas
 */
@ManagedBean(name = "login")
@SessionScoped
public class LoginBean {

    private String username;
    private String password;

    public String autenticar() {
        password=null;
        return "principal";
    }

    // Metodos de acceso Java Beans 
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
